import Request from "../../utils/request.js";
export default class {
  static queryEstateDetail(params) {
    return Request({
      url: `app/estate/houseDetail/${params}`,
      type: "GET"
    })
  }
  static queryCoupons(params) {
    return Request({
      url: `app/coupons/productId/coupons/info/${params}`,
      type: "GET"
    })
  }
  static queryFansList(params) {
    return Request({
      url: "app/accessLog/queryList",
      type: "POST",
      data: params
    })
  }
  static createFansList(params) {
    return Request({
      url: "app/accessLog/create",
      type: "POST",
      data: params
    })
  }
  static queryHouseTypeList(params) {
    return Request({
      url: `app/estate/queryHousetypeList/${params}`,
      type: "GET"
    })
  }
  static queryNewsList(params) {
    return Request({
      url: "app/news/list",
      type: "POST",
      data: params
    })
  }
  static createFavorite(params) {
    return Request({
      url: "app/favorite/create",
      type: "POST",
      data: params
    })
  }
  static createCoupons(params) {
    return Request({
      url: "app/coupons/create",
      type: "POST",
      data: params
    })
  }
  static queryHouseActivity(params) {
    return Request({
      url: "app/content/queryActivityList",
      type: "POST",
      data: params
    })
  }
  static queryHouseTel(params) {
    return Request({
      url: "app/customer/queryHouseTel",
      type: "POST",
      data: params
    })
  }
  static queryHotAccessHouse(params) {
    return Request({
      url: "app/accessLog/queryHotAccessHouse",
      type: "POST",
      data: params
    })
  }
  //二维码埋点，计算
  static visitNum(params) {
    return Request({
      //todo:
      url: `app/qrcode/visit`,
      type: "post",
      data: params,
    })
  }
  static bannerGet(params) {
    return Request({
      //todo:
      url: `app/estate/detail/activity/banner/get`,
      type: "GET",
      headers: {
        "Content-type": "application/x-www-form-urlencoded"
      },
      data: params,
    })
  }
}